﻿/**************************************************************
 *
 * 命名空间：Sgr.UPMS.Application.Commands.Menus
 * 创建时间：2025/3/20
 * 描述：删除菜单命令
 *
 **************************************************************/

using MediatR;
using Sgr.Application.Commands;
using Sgr.Domain.Uow;

namespace Sgr.UPMS.Application.Commands.Menus
{
    /// <summary>
    /// 删除菜单命令
    /// </summary>
    public sealed class DeleteMenuCommand : IRequest<CommandResult<bool>>, IRequireUnitOfWork
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 是否级联删除子菜单
        /// </summary>
        public bool Cascade { get; set; }
    }
}